<div class="dialog-container mdl-shadow--8dp mdl-layout--fixed-header SMES-dialog search-dialog" 
    ng-init="init();"
    ng-class="[dialog.isClose? 'isClose' : 'isOpen']">
    <div class="header">
        <div class="title" ng-bind="'home.search' | translate"></div>
        <div class="close-btn" ng-click="dialog.back();">
            <img src="image/smes_v340/close.png"></img>
        </div>
    </div>
    <div class="main">
        <div class="input-component">
            <input type="text" ng-keypress="dialog.search()" ng-model="dialog.tempValue">
            <div class="icon" ng-click="dialog.search()">
                <img src="image/smes_v340/W_Com_Search_nor_32.png" alt="">
            </div>
        </div> 
        <div class="item-list">
            <div class="perfect-scrollbar">
                <div class="item-component" ng-repeat="program in dialog.list | filter: {displayText: dialog.searchValue} track by $index" 
                    ng-show="dialog.searchValue"
                    ng-click="dialog.executeProgram(program);">
                    <div class="icon"><img ng-src="{{ 'image/smes_v340/menu/' + program.icon + '.png' }}" alt=""></div>
                    <div class="label" ng-bind="program.displayText | translate"></div>
                </div>
            </div>
        </div>
    </div>
</div>
